#!/usr/bin/env node
const input = JSON.parse(require('fs').readFileSync(0, 'utf-8'));
const promptLength = typeof input.userPromptSubmit.prompt === 'string' ? input.userPromptSubmit.prompt.length : 0;
console.log(JSON.stringify({
  cancel: false,
  contextModification: "Prompt length: " + promptLength,
  errorMessage: ""
}));
